package spitfire.ksim.algorithm;

public class FuzzyEntry {
	private String nodeId;
	private String sensorType;
	private String sd; //Semantic description
	private FuzzyRule rule;
	
	public FuzzyEntry(String nodeId, String sensorType,
			String sd, FuzzyRule rule) {
		this.nodeId = nodeId;
		this.sensorType = sensorType;
		this.sd = sd;
		this.rule = rule;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}
	
	public String getNodeId() {
		return nodeId;
	}
	
	public void setSensorType(String sensorType) {
		this.sensorType = sensorType;
	}
	
	public String getSensorType() {
		return sensorType;
	}
	
	public void setSd(String sd) {
		this.sd = sd;
	}
	
	public String getSd() {
		return sd;
	}

	public void setRule(FuzzyRule rule) {
		this.rule = rule;
	}

	public FuzzyRule getRule() {
		return rule;
	}

	public boolean match(String nodeId, String sensorType) {
		return (nodeId.equals(this.nodeId) && sensorType.equals(this.sensorType));
	}
}
